package com.pets.util;

import java.util.List;

/**
 * 返回工具类
 * @param <T>
 */
public class Result<T> {
    //参数
    private int code;

    //返回信息
    private String msg;

    //数据
    private List<T> data;


 /*   private Result(List<T> data) {
        this.data = data;
    }

    private Result(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }*/

    public Result() {

    }

    public int getCode() {
        return code;
    }
    public void setCode(int code) {
        this.code = code;
    }
    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
